<template lang="pug">
  .header
    el-row
      el-col.logo(:span="8")
        span 生涯排课系统管理
      el-col.user-info(:span="16")
        span 管理员
        span.logout( @click="logout") 注销
</template>

<script>
  // import axios from 'src/resource.js'

export default {
  data () {
    return {

    }
  },
  methods: {
    logout () {
      // axios.get('/api/common/logout').then((response) => {
      //   window.location.href = '/';
      // })
    }
  }
}
</script>

<style lang="stylus">
  .header
    height 60px
    width 100%
    background #409EFF
    color white
    .logo
      font-size 24px
      padding-left 20px
      line-height 60px
      i
        margin-right 10px
        font-size 24px
        vertical-align bottom
    .user-info
      text-align right
      padding-right 20px
      line-height 60px
      .image
        width 40px
        margin 10px 0px
        vertical-align middle
        margin-right 10px
        border-radius 20px
      .logout
        padding-left 15px
        cursor pointer
        font-size 12px
        color #fff
</style>
